package com.eachonline.smart.model.base;

import com.eachonline.model.BaseModel;
import java.io.Serializable;
import java.util.Date;

public class BaseSmartArtcile extends BaseModel implements Serializable {
    private String articleName;

    private String articleContent;

    private String userSid;

    private String articleCategory;

    private Date createTime;

    private Date modifyTime;

    private String teacherId;

    private String mainArticlePic;

    private String studyNum;

    private String articleSource;

    private String articleSite;

    private String checkStatus;

    private String comment;

    private String articleIntro;

    private String userName;

    private String articleCategoryCode;

    private Integer supportNum;

    private String userRole;

    private static final long serialVersionUID = 1L;

    public String getArticleName() {
        return articleName;
    }

    public void setArticleName(String articleName) {
        this.articleName = articleName == null ? null : articleName.trim();
    }

    public String getArticleContent() {
        return articleContent;
    }

    public void setArticleContent(String articleContent) {
        this.articleContent = articleContent == null ? null : articleContent.trim();
    }

    public String getUserSid() {
        return userSid;
    }

    public void setUserSid(String userSid) {
        this.userSid = userSid == null ? null : userSid.trim();
    }

    public String getArticleCategory() {
        return articleCategory;
    }

    public void setArticleCategory(String articleCategory) {
        this.articleCategory = articleCategory == null ? null : articleCategory.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(String teacherId) {
        this.teacherId = teacherId == null ? null : teacherId.trim();
    }

    public String getMainArticlePic() {
        return mainArticlePic;
    }

    public void setMainArticlePic(String mainArticlePic) {
        this.mainArticlePic = mainArticlePic == null ? null : mainArticlePic.trim();
    }

    public String getStudyNum() {
        return studyNum;
    }

    public void setStudyNum(String studyNum) {
        this.studyNum = studyNum == null ? null : studyNum.trim();
    }

    public String getArticleSource() {
        return articleSource;
    }

    public void setArticleSource(String articleSource) {
        this.articleSource = articleSource == null ? null : articleSource.trim();
    }

    public String getArticleSite() {
        return articleSite;
    }

    public void setArticleSite(String articleSite) {
        this.articleSite = articleSite == null ? null : articleSite.trim();
    }

    public String getCheckStatus() {
        return checkStatus;
    }

    public void setCheckStatus(String checkStatus) {
        this.checkStatus = checkStatus == null ? null : checkStatus.trim();
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment == null ? null : comment.trim();
    }

    public String getArticleIntro() {
        return articleIntro;
    }

    public void setArticleIntro(String articleIntro) {
        this.articleIntro = articleIntro == null ? null : articleIntro.trim();
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getArticleCategoryCode() {
        return articleCategoryCode;
    }

    public void setArticleCategoryCode(String articleCategoryCode) {
        this.articleCategoryCode = articleCategoryCode == null ? null : articleCategoryCode.trim();
    }

    public Integer getSupportNum() {
        return supportNum;
    }

    public void setSupportNum(Integer supportNum) {
        this.supportNum = supportNum;
    }

    public String getUserRole() {
        return userRole;
    }

    public void setUserRole(String userRole) {
        this.userRole = userRole == null ? null : userRole.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", sid=").append(sid);
        sb.append(", articleName=").append(articleName);
        sb.append(", articleContent=").append(articleContent);
        sb.append(", userSid=").append(userSid);
        sb.append(", articleCategory=").append(articleCategory);
        sb.append(", createTime=").append(createTime);
        sb.append(", modifyTime=").append(modifyTime);
        sb.append(", teacherId=").append(teacherId);
        sb.append(", mainArticlePic=").append(mainArticlePic);
        sb.append(", studyNum=").append(studyNum);
        sb.append(", articleSource=").append(articleSource);
        sb.append(", articleSite=").append(articleSite);
        sb.append(", checkStatus=").append(checkStatus);
        sb.append(", comment=").append(comment);
        sb.append(", articleIntro=").append(articleIntro);
        sb.append(", userName=").append(userName);
        sb.append(", articleCategoryCode=").append(articleCategoryCode);
        sb.append(", supportNum=").append(supportNum);
        sb.append(", userRole=").append(userRole);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BaseSmartArtcile other = (BaseSmartArtcile) that;
        return (this.getSid() == null ? other.getSid() == null : this.getSid().equals(other.getSid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSid() == null) ? 0 : getSid().hashCode());
        return result;
    }
}